const routes = [
  {
    path: '/',
    redirect: '/home',
  },
  {
    name: '首页',
    path: '/home',
    component: './Home',
  },
  {
    name: '页面商城',
    path: '/shop',
    routes: [
      {
        name: '购物车',
        path: '/shop/shop-cart',
        component: './Shop/ShopCart',
      },
      {
        name: '订单历史',
        path: '/shop/order-history',
        component: './Shop/OrderHistory',
      },
    ],
  },
  {
    name: '统一团购',
    path: '/group-buying',
    routes: [
      {
        name: '购物车',
        path: '/group-buying/shop',
        component: './GroupBuying/Shop',
      },
      {
        name: '订单历史',
        path: '/group-buying/order-history',
        component: './GroupBuying/OrderHistory',
      },
    ],
  },
  {
    name: '等级补完',
    path: '/chd-grade',
    routes: [
      {
        name: '订单历史',
        path: '/chd-grade/order-list',
        component: './ChdGrade/Order',
      },
    ],
  },
  {
    name: '小草配置',
    path: '/chd-xc',
    routes: [
      {
        name: '配置导出',
        path: '/chd-xc/config',
        component: './ChdXc/Config',
      },
      {
        name: '配置导出V2',
        path: '/chd-xc/config2',
        component: './ChdXc/Config2',
      },
      {
        name: '配置导出V3',
        path: '/chd-xc/config3',
        component: './ChdXc/Config3',
      },
    ],
  },
  {
    name: '模拟器',
    path: '/simulator',
    routes: [
      {
        name: '翅膀强化模拟',
        path: '/simulator/wing',
        component: './Simulator/Wing',
      },
    ],
  },
  // {
  //   name: '权限演示',
  //   path: '/access',
  //   component: './Access',
  // },
  {
    name: ' CRUD 示例',
    path: '/table',
    component: './Table',
  },
];

export default routes;
